import { _decorator, Component } from "cc";
import { Communicate } from "./../Comunicate/Communicate";
import { EventType } from "./../Enums/EnumPool";
const { ccclass, property } = _decorator;

@ccclass("CommonClickEvent")
export class CommonClickEvent extends Component {
  comm: Communicate = Communicate.getInstance;

  // 返回的是eventTouch对象和自定义数据
  public clickMethod(event: any, customData: string) {
    console.log(customData);
    this.comm.emit(EventType.IDENTIFY_FIRST, customData);
  }
}
